package cn.ycxy.lbl.pojo.posts.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value="查询帖子的条件DTO")
public class DiscussPostsListDTO {

    @ApiModelProperty(value = "0-失物招领; 1-拼车服务; 2-校园风景; 3-二手交易", required = true)
    @NotNull(message = "查询的帖子所属模块的类型不能为空!")
    private Integer type;

    @ApiModelProperty(value = "分类id")
    private Integer classifyId;

    @ApiModelProperty(value = "是否是查询最热门帖子: 0-否,1-是")
    private Integer isHot;

    @ApiModelProperty(value = "是否是查询自己发布的帖子: 0-否,1-是")
    private Integer isMe;

    @ApiModelProperty(value = "是否完成交易: 0-未完成; 1-已完成")
    private Integer isFinishDeal;

    @ApiModelProperty(value="页码", required = true)
    @NotNull(message = "分页页码不能为空!")
    private Integer pageNo;

    @ApiModelProperty(value="条数", required = true)
    @NotNull(message = "分页每页条数不能为空!")
    private Integer pageSize;
}
